<?php
require_once '../util/timer.php';
$stimer = mtimer();

require_once '../config.php';
require_once '../db/get/post.php';

require_once '../util/consts.php';
require_once '../util/Bitter.php';

$_TPL = array();

showFora();
echo '<center>',mtimer( $stimer ),'</center>';

function showFora() {
  global $_TPL;
  $pid = (string)$_REQUEST['pid'];

  $post = getPost($pid);

  $_TPL['pid'] = $post['id'];
  $_TPL['title'] = $post['title'];
  $_TPL['datum'] = $post['datum'];

  if($pid > 0)   
    showTpl('Edit');
  else
    showTpl('Error');
}

?>
